package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-07-13
 * Time: 10:31
 */
public class Test {
    public static void main(String[] args) {
        MyLinkedList list = new MyLinkedList();
//        list.addLast(1);
        list.addLast(3);
        list.addLast(3);
        list.addLast(3);

        list.addLast(3);

        list.display();
        list.removeAllKey(3);
        list.display();
    }
    public static void main6(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.display();
        list.remove(3);
        list.display();
    }
    public static void main5(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(3);
        list.addLast(3);
        list.addLast(3);
        list.display();
        list.removeAllKey(3);
//        list.clear();
        list.display();
    }
    public static void main4(String[] args) {
        MyLinkedList list = new MyLinkedList();
//        list.addLast(1);
//        list.addLast(2);
//        list.addLast(2);

        list.addLast(3);
        list.display();
        list.remove(3);
        list.display();
    }
    public static void main3(String[] args) {
        MyLinkedList list = new MyLinkedList();
//        list.addLast(3);
//        list.addIndex(9,1);
        list.addLast(1);
        list.addLast(1);

        list.addIndex(1,2);
        list.display();
    }
    public static void main2(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addLast(1);
        list.addLast(3);
        list.addLast(2);
        list.display();
    }
    public static void main1(String[] args) {
        MyLinkedList list = new MyLinkedList();
        list.addFirst(1);
        list.addFirst(2);
        list.addFirst(3);
        list.display();
    }
}
